<?php
$servicioProveedores    = new proveedorClass();
$listaProveedores = $servicioProveedores->listadoGeneralProveedores(1);
?>

<tr>
<td width="103">                    
        <?php if(count($listaProveedores)>0): ?>
            <select name="cboProovedor" class="textarea" id="cboProovedor" onchange="buscarContratosAndMedios(this.value,'<?php echo url_for('@buscarContrato') ?>','<?php echo url_for('@buscarMedio') ?>')">
            <option value="none">Seleccionar</option>
          <?php foreach ($listaProveedores as $row):?>
            <option value="<?php echo $row->getId(); ?>"><?php echo $row->getRazonSocial(); ?></option>
          <?php endforeach; ?>
        </select>
        <?php endif; ?>

        </td>
        <td width="103">
            <select name="cboContrato" class="textarea" id="cboContrato">
                <option value="none">Seleccionar</option>
            </select>
        </td>
        <td width="56">
            <input name="saldo" value="<?php echo $parametros['saldo'] ?>"  type="text" class="textarea" id="saldo" size="8" />
        </td>
        <td width="103">
            <select name="cboMedios" class="textarea" id="cboMedios">
                <option value="none">Seleccionar</option>
            </select>
        </td>
        <td width="68">
            <input name="formato"  value="<?php echo $parametros['formato'] ?>"  type="text" class="textarea" id="formato" size="10" />
        </td>
        <td width="103">

        <select name="cboTipoCompra" class="textarea" id="cboTipoCompra">
            <option value="none">Seleccionar</option>
            <option value="1">Costo por clic</option>
            <option value="2">Horas</option>
            <option value="3">Costo por visita</option>
            <option value="4">Consto por mil impresiones</option>
            <option value="5">Costo PLEAD</option>
            <option value="6">Costo PA</option>
            <option value="7">Patrocinio</option>
        </select>
        </td>
        <td width="85">
            <input placeholder="Inicio" value="<?php echo $parametros['fechaInicio'] ?>" style="width: 110px;height: 22px;margin: 0px 1.5px;" type="text" name="datepickerInicio" id="datepickerInicio" />
        </td>
        <td width="95">
            <input placeholder="Fin" value="<?php echo $parametros['fechaFin'] ?>" style="width: 110px;height: 22px;margin: 0px 1.5px;" type="text" name="datepickerFin" id="datepickerFin" />
        </td>
        <td width="98"><input value="<?php echo $parametros['inventario'] ?>" name="inventario" type="text" class="textarea" id="inventario" size="15" /></td>
        <td width="44"><input value="<?php echo $parametros['costoCmp'] ?>" name="costoCmp" type="text" class="textarea" id="costoCmp" size="6" /></td>
        <td width="45"><input value="<?php echo $parametros['cpc'] ?>" name="cpc" type="text" class="textarea" id="cpc" size="6" /></td>
        <td width="51"><input value="<?php echo $parametros['descuentoAgencia'] ?>" name="descuentoAgencia" type="text" class="textarea" id="descuentoAgencia" size="6" /></td>
        <td width="44"><input value="<?php echo $parametros['total'] ?>" name="total" type="text" class="textarea" id="total" size="6" /></td>
        <td width="59"><input value="<?php echo $parametros['costoAdverser'] ?>" name="costoAdverser" type="text" class="textarea" id="costoAdverser" size="6" /></td>
        <td width="56"><input value="<?php echo $parametros['totalAdverser'] ?>" name="totalAdverser" type="text" class="textarea" id="totalAdverser" size="6" /></td>
        <td width="69"><input value="<?php echo $parametros['liquidacion'] ?>" name="liquidacion" type="text" class="textarea" id="liquidacion" size="6" /></td>
        <td width="57"><input value="<?php echo $parametros['comisionPorcentaje'] ?>" name="comisionPorcentaje" type="text" class="textarea" id="comisionPorcentaje" size="6" /></td>
        <td width="54"><input value="<?php echo $parametros['totalComision'] ?>" name="totalComision" type="text" class="textarea" id="totalComision" size="6" /></td>
        <td width="38"><input value="<?php echo $parametros['costoTotal'] ?>" name="costoTotal" type="text" class="textarea" id="costoTotal" size="5" /></td>
</tr>
